﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApp1.SQlite
{
    public class PersonModel
    {
        public PersonModel()
        {
            workHistoryModels = new List<WorkHistoryModel>();
        }
        public string guid { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string cardNo { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string email { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string gender { get; set; }
        /// <summary>
        /// 出生日期
        /// </summary>
        public string birth { get; set; }
        /// <summary>
        /// 现住址
        /// </summary>
        public string address { get; set; }
        /// <summary>
        /// 照片
        /// </summary>
        public string photo { get; set; }
        /// <summary>
        /// 身高
        /// </summary>
        public string height { get; set; }
        /// <summary>
        /// 职位
        /// </summary>
        public string lastPosition { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string lastCompany { get; set; }
        /// <summary>
        /// 所属行业
        /// </summary>
        public string lastIndusty { get; set; }
        /// <summary>
        /// 专业
        /// </summary>
        public string major { get; set; }
        /// <summary>
        /// 学校
        /// </summary>
        public string school { get; set; }
        /// <summary>
        /// 最高学历学位
        /// </summary>
        public string highestDegree { get; set; }
        /// <summary>
        /// 工作经验列表
        /// </summary>
        public List<WorkHistoryModel> workHistoryModels{ get; set; }

    }
    public class WorkHistoryModel
    {
        public string guid { get; set; }
        /// <summary>
        /// 外键，关联人员表
        /// </summary>
        public string personId { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public string startTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public string endTime { get; set; }
        /// <summary>
        /// 职位
        /// </summary>
        public string position { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public string department { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string company { get; set; }
        /// <summary>
        /// 所属行业
        /// </summary>
        public string industy { get; set; }
        /// <summary>
        /// 工作描述
        /// </summary>
        public string workDescription { get; set; }
        /// <summary>
        /// 工作经验的添加顺序
        /// </summary>
        public int order { get; set; }
    }
}
